<?php
include_once( "include/global.php" );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Accounting - Login</title>
<link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript">
	$(function(){
		$("input#login-btn").click(Login);
		$('input#password-edit, input#name-edit').keyup(function(e) {
			if(e.keyCode == 13) {
				$("input#login-btn").click();
			}
		});
	});
</script>
</head>
<body>
<table>
	<tr>
		<td>帳號:</td>
		<td><input type="text" id="name-edit"></td>
	</tr>
	<tr>
		<td>密碼:</td>
		<td><input type="text" id="password-edit"></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="button" id="login-btn" value="送出">
		</td>
	</tr>
	<tr>
		<td colspan="2"><div id="login_msg-div"></div></td>
	</tr>
</table>
<?php
include_once( "./include/tail.php" );
?>
</body>
</html>
